package com.mars.basic.repository;

import com.mars.basic.allmain.entity.RoleEntity;
import com.mars.basic.allmain.po.Role;
import com.mars.basic.convert.RoleConvert;
import com.mars.basic.repo.RoleRepo;
import com.mars.common.convert.IEntityPOConvert;
import com.mars.common.repository.SimplePoConvertEntityRepository;
import com.rp.spring.jpa.GenericJpaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class RoleRepository extends SimplePoConvertEntityRepository<RoleEntity, Role,Integer> {
    @Autowired
    RoleRepo userRepo ;
    @Autowired RoleConvert convert;

    @Override
    public GenericJpaRepository<Role, Integer> repo() {
        return userRepo;
    }

    @Override
    public IEntityPOConvert<RoleEntity, Role> convert() {
        return convert;
    }
}
